package com.ruoyi.system.service.car4s_service.car4s_impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.car4s_mapper.Car4sRepairInfoMapper;
import com.ruoyi.system.domain.car4s_domain.Car4sRepairInfo;
import com.ruoyi.system.service.car4s_service.ICar4sRepairInfoService;

/**
 * 维修信息单Service业务层处理
 * 
 * @author LK
 * @date 2024-06-29
 */
@Service
public class Car4sRepairInfoServiceImpl implements ICar4sRepairInfoService 
{
    @Autowired
    private Car4sRepairInfoMapper car4sRepairInfoMapper;

    /**
     * 查询维修信息单
     * 
     * @param repairId 维修信息单主键
     * @return 维修信息单
     */
    @Override
    public Car4sRepairInfo selectCar4sRepairInfoByRepairId(Long repairId)
    {
        return car4sRepairInfoMapper.selectCar4sRepairInfoByRepairId(repairId);
    }

    /**
     * 查询维修信息单列表
     * 
     * @param car4sRepairInfo 维修信息单
     * @return 维修信息单
     */
    @Override
    public List<Car4sRepairInfo> selectCar4sRepairInfoList(Car4sRepairInfo car4sRepairInfo)
    {
        return car4sRepairInfoMapper.selectCar4sRepairInfoList(car4sRepairInfo);
    }

    /**
     * 新增维修信息单
     * 
     * @param car4sRepairInfo 维修信息单
     * @return 结果
     */
    @Override
    public int insertCar4sRepairInfo(Car4sRepairInfo car4sRepairInfo)
    {
        return car4sRepairInfoMapper.insertCar4sRepairInfo(car4sRepairInfo);
    }

    /**
     * 修改维修信息单
     * 
     * @param car4sRepairInfo 维修信息单
     * @return 结果
     */
    @Override
    public int updateCar4sRepairInfo(Car4sRepairInfo car4sRepairInfo)
    {
        return car4sRepairInfoMapper.updateCar4sRepairInfo(car4sRepairInfo);
    }

    /**
     * 批量删除维修信息单
     * 
     * @param repairIds 需要删除的维修信息单主键
     * @return 结果
     */
    @Override
    public int deleteCar4sRepairInfoByRepairIds(Long[] repairIds)
    {
        return car4sRepairInfoMapper.deleteCar4sRepairInfoByRepairIds(repairIds);
    }

    /**
     * 删除维修信息单信息
     * 
     * @param repairId 维修信息单主键
     * @return 结果
     */
    @Override
    public int deleteCar4sRepairInfoByRepairId(Long repairId)
    {
        return car4sRepairInfoMapper.deleteCar4sRepairInfoByRepairId(repairId);
    }
}
